package com.qfedu.zf.index.controller;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.qfedu.zf.common.vo.R;
import com.qfedu.zf.index.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 存储城市信息 前端控制器
 * </p>
 *
 * @author wgz
 * @since 2024-06-18
 */
@RestController
@RequestMapping("/index/city")
public class CityController {

    @Autowired
    CityService cityService;

    @RequestMapping("list")
    public R selectAll(@RequestParam Map<String, Object> map) {
        return cityService.selectAll(map);
    }
}

